package main

import (
	"fmt"
	"crypto/md5"
	"encoding/hex"
	"strconv"
)


func getmd5(raw string) string {
	h := md5.Sum([]byte(raw))
	return hex.EncodeToString(h[:])
}


func main(){
	firstBytesSize := 2
	s := getmd5("adf")
	fmt.Println(s, s[0:firstBytesSize])
    batchNum := 256
	m, err := strconv.ParseInt("b3", 16, 64)
	if err != nil {
		fmt.Println(111, err)
		return
	}
	fmt.Println(222, m)
	fmt.Println( int(m) % int(batchNum))

	//fmt.Println(strconv.FormatInt(int64(2048), 16))
}
